<?php

namespace App\Http\Controllers\H5;

use App\Models\ProductNews;
use Illuminate\Http\Request;

class ProductNewsController extends BaseController
{
    /**
     * @param $id
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function detail($id)
    {
        $news = ProductNews::find($id);
        $images = $news->images;

        return $this->view('h5.productnews.detail', compact('news', 'images'));
    }
}
